package com.glink.manage.dto.person;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@ApiModel(value="PersonAccessCycleSaveDTO对象", description="人员管理-人员准入-更新准入周期")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonAccessCycleSaveDTO implements Serializable {

    private static final long serialVersionUID = 4021219968836182250L;

    @ApiModelProperty(value = "主键")
    @NotBlank(message = "用户ID不能为空")
    private String personObjId;

    @ApiModelProperty(value = "准入记录ID")
    @NotBlank(message = "准入记录ID不能为空")
    private String accessObjId;

    @ApiModelProperty(value = "准入周期开始")
    @NotNull(message = "准入周期开始不能为空")
    private Date cycleStart;

    @ApiModelProperty(value = "准入周期结束")
    @NotNull(message = "准入周期结束不能为空")
    private Date cycleEnd;
}
